package com.marvels.approve.manager.dto;

import java.util.Date;

import com.marvels.common.constants.PageConstant;
import com.marvels.common.dto.BaseDTO;
import com.marvels.common.exception.MarvelsBusinessException;

/**
 * @author 何杰
 * 2018年4月2日
 */
public class CaseManagerProductTypeDTO extends BaseDTO{
	private Long id;
	private String actKey;//'流程ID/KEY',
	private String actName;//'流程名称',
	private Integer actVersion;//'流程使用版本',
	private Integer status;//'0有效 1无效',
	private String productType;//
	private String productTypeName ;//
	private String remark;
	private String createdBy;//'创建用户',
	private Date startCreatedDate;//'创建时间',
	private Date endCreatedDate;//'创建时间',
	private String updatedBy;//'更新用户',
	private Date startUpdatedDate;//'更新时间',
	private Date endUpdatedDate;//'更新时间',
	private Date createdDate;//'创建时间',
	private Date updatedDate;//'更新时间',
	
	private Integer pageNum;
	private Integer pageSize;
	
	
	public Date getCreatedDate() {
		return createdDate;
	}
	public void setCreatedDate(Date createdDate) {
		this.createdDate = createdDate;
	}
	public Date getUpdatedDate() {
		return updatedDate;
	}
	public void setUpdatedDate(Date updatedDate) {
		this.updatedDate = updatedDate;
	}
	public Long getId() {
		return id;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public String getActKey() {
		return actKey;
	}
	public void setActKey(String actKey) {
		this.actKey = actKey;
	}
	public String getActName() {
		return actName;
	}
	public void setActName(String actName) {
		this.actName = actName;
	}
	public Integer getActVersion() {
		return actVersion;
	}
	public void setActVersion(Integer actVersion) {
		this.actVersion = actVersion;
	}
	public Integer getStatus() {
		return status;
	}
	public void setStatus(Integer status) {
		this.status = status;
	}
	 
	public String getProductType() {
		return productType;
	}
	public void setProductType(String productType) {
		this.productType = productType;
	}
	public void setPageNum(Integer pageNum) {
		this.pageNum = pageNum;
	}
	public void setPageSize(Integer pageSize) {
		this.pageSize = pageSize;
	}
 
	public String getProductTypeName() {
		return productTypeName;
	}
	public void setProductTypeName(String productTypeName) {
		this.productTypeName = productTypeName;
	}
	public String getCreatedBy() {
		return createdBy;
	}
	public void setCreatedBy(String createdBy) {
		this.createdBy = createdBy;
	}
	public Date getStartCreatedDate() {
		return startCreatedDate;
	}
	public void setStartCreatedDate(Date startCreatedDate) {
		this.startCreatedDate = startCreatedDate;
	}
	public Date getEndCreatedDate() {
		return endCreatedDate;
	}
	public void setEndCreatedDate(Date endCreatedDate) {
		this.endCreatedDate = endCreatedDate;
	}
	public String getUpdatedBy() {
		return updatedBy;
	}
	public void setUpdatedBy(String updatedBy) {
		this.updatedBy = updatedBy;
	}
	public Date getStartUpdatedDate() {
		return startUpdatedDate;
	}
	public void setStartUpdatedDate(Date startUpdatedDate) {
		this.startUpdatedDate = startUpdatedDate;
	}
	public Date getEndUpdatedDate() {
		return endUpdatedDate;
	}
	public void setEndUpdatedDate(Date endUpdatedDate) {
		this.endUpdatedDate = endUpdatedDate;
	}
	public int getPageNum() {
		return pageNum==null?PageConstant.CURRPAGE:pageNum;
	}
	public void setPageNum(int pageNum) {
		this.pageNum = pageNum;
	}
	public int getPageSize() {
		return pageSize==null?PageConstant.PAGESIZE:pageSize;
	}
	public void setPageSize(int pageSize) {
		this.pageSize = pageSize;
	}
	public String getRemark() {
		return remark;
	}
	public void setRemark(String remark) {
		this.remark = remark;
	}
	
	@Override
	public String obtainLoginUserName() throws MarvelsBusinessException {
		try {
			return super.obtainLoginUserName();
		} catch (Exception e) {
			return "";
		}
	}
}
